<?php

class disenador extends object_standard {

    //attribute variables 
    protected $identificacion;

    //components 
    var $components = array();
    //auxiliars for primary key and for files 
    var $auxiliars = array();

    //data about the attributes 
    public function metadata() {
        return array("identificacion" => array(),
            "identificaion" => array("foreign_name" => "e_d", "foreign" => "identificacion", "foreign_attribute" => "identificacion"));
    }

    public function primary_key() {
        return array("identificacion");
    }

    public function relational_keys($class, $rel_name) {
        switch ($class) {
            case "empleado":
                switch ($rel_name) {
                    case "e_d":
                        return array("identificacion");
                        break;
                }
                break;

            default:
                break;
        }
    }
/*
    public function aumento() {
        return $this->salary * 1.1;
    }
*/
}

?>